package com.zhaocheng.tank;

import java.awt.*;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

/**
 * @author zhaocheng
 * @version 1.0
 * @date 2020/6/13 0013 9:37
 */
public class Main {

    public static void main(String[] args) throws InterruptedException {
        TankFrame frame = new TankFrame();

        int initTankCount = Integer.valueOf((String) ConfigMgr.get("initTankCount"));
        for (int i = 0; i <= initTankCount; i++) {
            frame.bedTank.add(new Tank(50 + i * 80, 50, Dir.DOWN, frame,Group.BED));
        }
        while (true) {
            Thread.sleep(25);
            frame.repaint();
        }

    }
}
